.class public Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$PermissionHandler;
.super Landroidx/fragment/app/Fragment;
.source "PermissionHelper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x9
    name = "PermissionHandler"
.end annotation


# static fields
.field private static b:I = 0x3


# instance fields
.field private a:Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$c;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .line 1
    invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V

    return-void
.end method


# virtual methods
.method a(Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$PermissionHandler;->a:Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$c;

    return-void
.end method

.method a(Ljava/util/List;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    const/4 v0, 0x0

    new-array v0, v0, [Ljava/lang/String;

    .line 2
    invoke-interface {p1, v0}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;

    move-result-object p1

    check-cast p1, [Ljava/lang/String;

    sget v0, Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$PermissionHandler;->b:I

    invoke-virtual {p0, p1, v0}, Landroidx/fragment/app/Fragment;->requestPermissions([Ljava/lang/String;I)V

    return-void
.end method

.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V
    .locals 2
    .param p2    # [Ljava/lang/String;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param
    .param p3    # [I
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V

    .line 2
    sget p2, Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$PermissionHandler;->b:I

    if-ne p1, p2, :cond_2

    .line 3
    array-length p1, p3

    const/4 p2, 0x0

    const/4 v0, 0x0

    :goto_0
    if-ge v0, p1, :cond_1

    aget v1, p3, v0

    if-eqz v1, :cond_0

    goto :goto_1

    :cond_0
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    const/4 p2, 0x1

    .line 4
    :goto_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$PermissionHandler;->a:Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$c;

    invoke-interface {p1, p2}, Lcom/estrongs/android/pop/app/filetransfer/PermissionHelper$c;->a(Z)V

    :cond_2
    return-void
.end method
